package com.shenbao.service;

import com.shenbao.beans.ExpertAdvice;
import com.shenbao.vo.ExpertAdviceVO;

import java.util.List;
import java.util.Map;

public interface IExpertAdviceService {
    int deleteByPrimaryKey(Integer id);

    int insert(ExpertAdvice record);

    int insertSelective(ExpertAdvice record);

    ExpertAdvice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ExpertAdvice record);

    int updateByPrimaryKey(ExpertAdvice record);

    int getTotalCount();

    int getCountByParameterName(String parameterName);

    List<ExpertAdvice> selectByPaingAndCondition(Map<String, String> map);
    
    List<ExpertAdviceVO> getExpertAdviceByProjectapplayid(Map<String, String> map);
    
    int updateexpertadvicebyexpertid(ExpertAdvice record);
    
    /**
     * 根据专家的id 即数据库中的userid和项目申报id 即projectApplyid 获得 id
     * @param map
     * @return
     */
    ExpertAdvice getExpertAdviceByExpertidAndProjectApplyid(Map<String, String> map);
}